package com.ygqh.baby.service;
import java.util.List;
import  com.ygqh.baby.ao.QueryInfo;
import  com.ygqh.baby.ao.ResultSet;
import  com.ygqh.baby.po.AdminPermission;

public interface AdminPermissionService {

    
    List<AdminPermission> find();
	int findCount();
	AdminPermission findById(Long id);
	int deleteSoft(Long[] ids);
	int deleteSoft(Long id);
	int save(AdminPermission adminPermission );
	int update(AdminPermission adminPermission);
	int saveOrUpdate(AdminPermission adminPermission);
	ResultSet<AdminPermission> search(QueryInfo queryInfo,String q);
	
	/**
	 * 查找所有权限
	 * 
	 * @param parentId
	 * @return
	 */
	List<AdminPermission> findAllPermission(Long parentId);
}
